<?php

require_once('db.php');
$email = $_GET['email'];
$result = mysql_query("SELECT * FROM records WHERE email = '$email'");

if( mysql_num_rows($result) == 0 ){
  echo 1;
} else {
  echo 0;
}
